﻿using Content;
using Godot;
using KludgeBox.Collections;

namespace VectorSurvivors;

[GlobalClass]
public partial class MenuButton : Button
{
    public static readonly RandomPicker<string> SelectSound = Sfx.UiSelectNeutral;
    public static readonly RandomPicker<string> PressSound = Sfx.UiClick;

    public override void _Ready()
    {
        MouseEntered += () =>
        {
            Audio2D.PlayUiSound(SelectSound);
        };

        Pressed += () =>
        {
            Audio2D.PlayUiSound(PressSound);
        };
    }
}